
<script setup lang="ts">
import ElFormItemWrapper from "./components/ElFormItemWrapper.vue";
import {defineComponent, ref} from "vue";
import {useVModel} from "@vueuse/core";

const fieldModel = ref(null)

defineComponent({
  name: 'custom-el-input-tag'
})
const emit = defineEmits(['update:activeItem'])
const props = defineProps({
  field: Object,
  activeItem: Object
})

const activeItemVModel = useVModel(props, 'activeItem', emit)

</script>

<template>
  <ElFormItemWrapper :field="field" v-model:activeItem="activeItemVModel">
    <el-input-tag :placeholder="field?.placeholder"  v-model="fieldModel"></el-input-tag>
  </ElFormItemWrapper>
</template>

<style scoped>

</style>
